//
// Created by Administrator on 2021/5/21.
//

#include "iostream"

using namespace std;

int main(){

    //1.create five pigs'weight
    int arr[5] = {200, 350, 200, 400, 250};

    //2.find a max weight in array
    int max = 0;
    for (int i = 0; i < 5; i++) {
        if (arr[i] > max){
            max = arr[i];
        }
    }
    cout << "the weightest pig is : " << max << endl;
    system("pause");

    return 0;
}